/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author LYS
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface Bas3dwhBox extends BasicModel<Bas3dwhBox> {
  code?: string; // 箱子编码
  areaCode?: string; // 所在区域编码
  curPos?: string; // 所在位置
  cstatus?: string; // 状态
}

export const bas3dwhBoxList = (params?: Bas3dwhBox | any) =>
  defHttp.get<Bas3dwhBox>({ url: adminPath + '/bas/box/bas3dwhBox/list', params });

export const bas3dwhBoxListData = (params?: Bas3dwhBox | any) =>
  defHttp.post<Page<Bas3dwhBox>>({ url: adminPath + '/bas/box/bas3dwhBox/listData', params });

export const bas3dwhBoxForm = (params?: Bas3dwhBox | any) =>
  defHttp.get<Bas3dwhBox>({ url: adminPath + '/bas/box/bas3dwhBox/form', params });

export const bas3dwhBoxSave = (params?: any, data?: Bas3dwhBox | any) =>
  defHttp.postJson<Bas3dwhBox>({ url: adminPath + '/bas/box/bas3dwhBox/save', params, data });

export const bas3dwhBoxDelete = (params?: Bas3dwhBox | any) =>
  defHttp.get<Bas3dwhBox>({ url: adminPath + '/bas/box/bas3dwhBox/delete', params });
